﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Code.Models
{
    public enum NewState
    {
        /// <summary>
        /// 禁用
        /// </summary>
        Disabled=0,
        /// <summary>
        /// 可用
        /// </summary>
        Enabled=1,
    }

    public static class NewStateEx
    {
        public static string Name(this NewState state)
        {
            switch (state)
            { 
                case NewState.Disabled:
                    return "隐藏";
                case NewState.Enabled:
                    return "可见";
                default:
                    return string.Empty;
            }
        }
    }
}
